<?php
/**
 * Created by PhpStorm.
 * User: mac
 * Date: 2018/12/15
 * Time: 11:13
 */
namespace app\draw\validate;

use think\Validate;

class Draw extends Validate{

    protected $rule = [
        'member_id' => 'require',
        'name' => 'require',
        'id_card' => 'require',
        'phone' => 'require',
    ];

    protected $message = [
        'member_id.require' => '会员id不能为空',
        'name.require' => '姓名不能为空',
        'id_card.require' => '身份证号码不能为空',
        'phone.require' => '手机号不能为空'
    ];

    protected $scene = [
        'apply' => [
            'member_id',
            'name',
            'id_card',
            'phone'
        ]
    ];

}